<?php 

namespace Home\Model;
use Think\Model;
class VerifyModel extends Model {  

	public function getOneVerify(){ //封装一个方法获得人类验证一条问题
		$sql='select * from verify order by rand() limit 1';
		$question=$this->query($sql);
		// var_dump($question);
		$question=current($question);

		$_SESSION['answer']=$question['answer'];

		
		return $question['question'];


	}

}









 ?>